<include file='Common:header' />
<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
	<!-- #section:basics/sidebar -->
	<include file='Common:left' />
	<!-- /section:basics/sidebar -->
	<div class="main-content">
		<div class="main-content-inner">
			<div class="page-content">
				<div class="row">
					<div class="col-xs-12">
						<div>
						<form id="alldel" name="alldel" method="post" action="{:U('comment_alldel')}" >
							<input name="p" id="p" value="{:I('p',1)}" type="hidden" />
							<div class="table-responsive">
							<table class="table table-striped table-bordered table-hover" id="dynamic-table">
								<thead>
								<tr>
									<th class="hidden-xs center">
										<label class="pos-rel">
											<input type="checkbox" class="ace"  id='chkAll' onclick='CheckAll(this.form)' value="全选"/>
											<span class="lbl"></span>
										</label>
									</th>
									<th>ID</th>
									<th>评论人</th>
									<th class="hidden-sm hidden-xs">评论人邮箱</th>
									<th>评论内容</th>
									<th class="hidden-xs">审核</th>
									<th class="hidden-sm hidden-xs">评论时间</th>
									<th style="border-right:#CCC solid 1px;">操作</th>
								</tr>
								</thead>

								<tbody>

								<foreach name="comments" item="v">
									<tr>
										<td class="hidden-xs" align="center">
											<label class="pos-rel">
												<input name='c_id[]' id="navid" class="ace"  type='checkbox' value='{$v.c_id}'>
												<span class="lbl"></span>
											</label>
										</td>
										<td>{$v.c_id}</td>
										<td height="28">{$v.member_list_username|default=$v['member_list_nickname']}</td>
										<td class="hidden-sm hidden-xs">{$v.email|default=$v['member_list_email']}</td>
										<td>{$v.c_content}</td>
										<td class="hidden-xs">
											<if condition="$v['c_status'] eq 1">
												<a class="red state-btn" href="{:U('comment_state')}" data-id="{$v.c_id}" title="已审">
													<div id="zt{$v.c_id}"><button class="btn btn-minier btn-yellow">已审</button></div>
												</a>
												<else/>
												<a class="red state-btn" href="{:U('comment_state')}" data-id="{$v.c_id}" title="未审">
													<div id="zt{$v.c_id}"><button class="btn btn-minier btn-danger">未审</button></div>
												</a>
											</if>
										</td>
										<td class="hidden-sm hidden-xs">{$v.createtime|date='Y-m-d H:i:s',###}</td>
										<td>
											<div class="action-buttons">
												<a class="red confirm-rst-url-btn" data-info="你确定要删除吗？包括其下子评论" href="{:U('comment_del',array('c_id'=>$v['c_id'],'p'=>I('p',1)))}" title="删除">
												<i class="ace-icon fa fa-trash-o bigger-130"></i>
												</a>
											</div>
										</td>
									</tr>
								</foreach>
								<tr>
									<td align="left"><button id="btnsubmit" class="btn btn-white btn-yellow btn-sm">删</button> </td>
									<td colspan="8" align="right" class="hidden-xs">{$page}</td>
									<td colspan="8" align="right" class="hidden-lg hidden-md hidden-sm">{$page_min}</td>
								</tr>
								</tbody>
							</table>
							</div>
						</form>	
						</div>
					</div>
				</div>

				<include file='Common:header_nav' />

			</div><!-- /.page-content -->
		</div>
	</div><!-- /.main-content -->
	<include file='Common:footer' />

</div><!-- /.main-container -->
</body>
</html>
